package com.wdb.common.repository;


import com.wdb.common.base.BaseEntity;

import java.util.List;

/**
 * @author shiyu.long
 */
public interface CrudRepository<E extends BaseEntity> {
    E add(E entity);

    E find(Long id);

    void remove(Long id);

    E modify(E entity);

    void batchRemove(List<Long> ids);

    List<E> batchAdd(List<E> entities);
}
